package fields;

import model.Board;
import model.Player;
import view.Boundary;

public class Jail extends Field{

	public Jail(int number, String name) {
		super(number, name);
	}

	@Override
	public void landOnField(Player player) {
		Boundary.showMessage("You are jailed!");
		player.setPosition(Board.JAILPOSITION);
		player.incrementJailedTime();
	}

	@Override
	public String toString() {
		return "Jail\t[" + super.toString() + "]";
	}
}